package cn.taobaoke.restful.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.util.Date;

/**
 * NoticeEntity类.
 * +-----------------------------------------------------------------------------------------------+
 * |类名称: NoticeEntity                                                                         |
 * |创建时间: 5/6/17                                                                               |
 * |功能简介:                                                                                       |
 * |参考链接:                                                                                       |
 * +-----------------------------------------------------------------------------------------------+
 *
 * @author luch
 */

@ToString
@Setter
@Getter
@Entity
@Table(name = "tb_notice")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
public class NoticeEntity {

    @Id
    @GeneratedValue
    private Long id;

    @Column
    private String title;

    @Column(length = 10000)
    private String content;

    @Column
    private Boolean isDeleted;

    @Column
    private Date createAt;      // 创建时间

    @Column
    private Date updateAt;      // 更新时间

//    @Column
//    private Long domainId;
}
